// 核心文件，管理单个状态，形成多状态管理器
// 创建
import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import moviedata from '@/components/movie/store'

const reducer = combineReducers ({
  movie: moviedata
})
// 创建 Redux store 来存放应用的状态。
const store = createStore(reducer, applyMiddleware(thunk))

export default store